﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ToyStore.Domain.Store
{
	/// <summary>
	/// Obrazek (okładka książki itp.).
	/// </summary>
	public class Picture : BaseEntity
	{
		/// <summary>
		/// Nazwa obrazka.
		/// </summary>
		[DisplayName("Nazwa"), StringLength(200)]
		public virtual string Name { get; set; }

		/// <summary>
		/// Link do obrazka.
		/// </summary>
		[DisplayName("Link"), StringLength(200)]
		public virtual string Url { get; set; }

		/// <summary>
		/// Produkt do którego dodano obrazek.
		/// </summary>
		[DisplayName("Produkt")]
		public virtual Product Product { get; set; }
	}
}
